


<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="增加">
        </el-page-header>
        <div class="model-content">
            <QuerySnippetForm
                    v-model="form"
                    @submit="createData"
                    @cancel="goBack"
                    ref="ruleForm"
            />
        </div>
    </div>
</template>

<script setup>
    import QuerySnippetForm from "./form.vue";
    import {ref} from "vue";
    import {useCreate} from "@/uses/useCreate";

    const form = ref({
    })

    const ruleForm = ref(null);

    const {createData,goBack} =useCreate("querySnippet",form,ruleForm)
</script>

<style scoped>
</style>